// CSS3 animated & responsive dropdown menu
// http://www.red-team-design.com/css3-animated-dropdown-menu

$(function() {
		if ($.browser.msie && $.browser.version.substr(0,1)<7)
		{
		$('li').has('ul').mouseover(function(){
			$(this).children('ul').css('visibility','visible');
			}).mouseout(function(){
			$(this).children('ul').css('visibility','hidden');
			})
		}

		/* Mobile */
		$('#navi-wrap').prepend('<div id="navi-trigger">Menu</div>');		
		$("#navi-trigger").on("click", function(){
			$("#navi").slideToggle();
		});

		// iPad
		var isiPad = navigator.userAgent.match(/iPad/i) != null;
		if (isiPad) $('#navi ul').addClass('no-transition');      
 });          
